package com.sidianzhong.sdz.service;

import com.sidianzhong.sdz.model.*;
import com.sidianzhong.sdz.utils.PageInfo;
import com.alibaba.fastjson.JSONObject;
import java.util.List;

/**
* Created by hxgqh on 2016/1/7.
*/
public interface ConstantService {

    Constant create(Constant item);

    int delete(Integer id);

    int update(Constant item);

    Constant get(Integer id);

    PageInfo<Constant> getListWithPaging(Integer pageNum, Integer pageSize,
                                         String sortItem, String sortOrder, Constant item);

    List<Constant> getList(Integer pageNum, Integer pageSize,
                           String sortItem, String sortOrder, Constant item);

    PageInfo<JSONObject> getListWithObject(Integer pageNum, Integer pageSize,
                                           String sortItem, String sortOrder, Constant item);

    String selectValueByKey(String Key);
}
